#include <stdio.h>

int main(void)
{
    int a[2][3] = {{1, 10, 2}, 
                   {3, 4, 5}};
    int(*p)[3];

    printf("a[1] address is %p, a[1] value is %d\n", a[1], *a[1]);
    printf("%d\n", (*(a + 1))[2]);

    for (p =a; p < a + 2; p++) 
        printf("address is %p, value is %d\n", (*p), *(*p));

    return 0;
}
